<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'otherPeriodical.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="css/space.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function(){
	var status = $(".status").html();
	if(status == 2) {
		$(".status").html("停刊");
	} else if(3 == status) {
		$(".status").html("未通过");
	}
});
</script>

</head>
<body>
	<div class="all">
		<div class="bodyge-left">
			<div class="bodyge-left-a1"><span class="font-b">其他</span></div>
			<table class="ma-tab" cellspacing="0px" cellpadding="0px">
				<tr class="ma-tab-tr_a">
					<td width="150px">期刊名称</td>
					<td width="90px">类别</td>
					<td width="90px">出版周期</td>
					<td width="120px">创建时间</td>
					<td width="60px">状态</td>
					<td width="60px">操作</td>
				</tr>
				<tr height="5px"></tr>
				<c:forEach items="${ requestScope.pages.records }" var="periodical">
				<tr class="ma-tab-tr_b">
					<td style="text-align:left;">${ periodical.name }</td>
					<td>${ periodical.category.name }</td>
					<td>${ periodical.cycle }</td>
					<td align="center">${ periodical.createDate }</td>
					<td class="status">${ periodical.status }</td>
					<td align="center"><a href="periodical/periodicalId?value=4&periodical.periodicalId=${ periodical.periodicalId }">查看</a></td>
				</tr>
				</c:forEach>
			</table>
			<br />
			<jsp:include page="/page2.jsp" />
		</div>
	</div>
</body>
</html>
